<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增码商配置')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-channelSetting-add">
        <input id="channelId" name="channelId" th:field="${channelId}"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">支付类型：</label>
            <div class="col-sm-8">
                <select  id="payType"  name="payType" class="form-control m-b">
                    <option th:each="dict : ${payerPayTypes}" th:text="${dict.payLabel}" th:value="${dict.payType}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">预充值费率：</label>
            <div class="col-sm-8">
                <input id="depositRate" name="depositRate" class="form-control" type="text" value="-1">
                <div>注:-2表示不需要预充值;-1表示金额跟随系统默认设置;大于0表示自定义</div>
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "channel/channelSetting"
    $("#form-channelSetting-add").validate({
        rules: {
            xxxx: {
                required: true,
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        var channelId = [[${channelId}]]
        if ($.validate.form()) {
            $.operate.save(prefix + "/add/"+channelId, $('#form-channelSetting-add').serialize());
        }
    }
</script>
</body>
</html>
